﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Facebook;
using Facebook.Schema;
using System.Windows.Media.Imaging;

namespace Coot
{
    class PhotoCollection : List<PhotoControl>
    {
        private int size;
        private bool full;

        public int Size
        {
            get { return size; }
            set { size = value; }
        }

        public bool Full
        {
            get { return full; }
            set { full = value; }
        }

        public PhotoCollection(int startSize)
        {
            size = startSize;
            full = false;
        }

        public void AddPhoto(BitmapImage photo, int width, int height, string cap)
        {
            if (this.Count == size)
            {
                this.RemoveAt(0);
                full = true;
            }
            
            this.Add(new PhotoControl(photo, width, height, cap));
        }

    }
}
